def runProcess(cmd):
  split_cmd = cmd.split(' ')
  import subprocess
  a = subprocess.check_output(split_cmd)
  return a.strip(" \n\r\t")

a = runProcess('./externalProgram.py')

print a

